Skip to content

[3.14] Add MSan to CI (GH-158625) - #158834

Merged
pablogsal merged 3 commits into
python:3.14from
pablogsal:backport-158625-314
Oct 5, 2026
Merged

pablogsal merged 3 commits into
python:3.14from
pablogsal:backport-158625-314

Conversation

@pablogsal

@pablogsal pablogsal commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Backport of #158625 to 3.14. Keep the existing UBSan flags and omit changes to the binary profiler, frame-pointer helper, and tests that are absent from this branch. Add the two MSan unpoison macros used by the socket and POSIX fixes, including the getrandom output annotation already present in newer branches.

The fuzz harness also needs the existing main-branch fix to accept ValueError for non-ASCII struct formats; its failing input is now covered by the smoke test.

The faulthandler, socket, and monitoring suites pass (885 tests, 230 skipped). All 382 test_os tests also pass under MSan after adding the getrandom annotation.

(cherry picked from commit b93fb19)

* Run the test suite with MSan in CI

* Additional fixes

* Add `_Py_MSAN_UNPOISON_STRING`

* Apply Victor's suggestions

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>

* Apply Victor's suggestions

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>

---------

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>
(cherry picked from commit b93fb19)
@pablogsal
pablogsal enabled auto-merge (squash) October 5, 2026 09:38
@pablogsal
pablogsal requested a review from ammaraskar as a code owner October 5, 2026 09:55
@pablogsal
pablogsal merged commit e0c28e2 into python:3.14 Oct 5, 2026
52 checks passed
@pablogsal
pablogsal deleted the backport-158625-314 branch October 5, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra CI, GitHub Actions, buildbots, Dependabot, etc. skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants